package cn.kgc.springcloud.controller;

import cn.kgc.springcloud.service.FaqsFeignService;
import cn.kgc.springcloudfaqs.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
public class FaqsSearchController {
    @Resource
    private FaqsFeignService faqsFeignService;

    @GetMapping("/faqs/faqs/selectPage")
    public R<Map<String,Object>> selectPage(@RequestParam("pageNum") Integer pageNum, String info){
        System.out.println("pageNUm"+pageNum+"info:"+info);
        return faqsFeignService.selectPage(pageNum,info);
    }
}
